package com.walle.concurrenttest.juc.lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.juc.lock
 * @Description: ${todo}
 * @date 2019/3/6 14:51
 */
public class FairTest {

    public static void main(String[] args) {

        ReentrantLock lock = new ReentrantLock(true);
        Thread tA = new Thread(new FairA(lock));
        Thread tB = new Thread(new FairB(lock));

        tA.start();
        tB.start();
    }


}
